//Source file: D:\\test\\com\\ce\\pms\\customer\\model\\RelationTypeDO.java

package com.ce.pms.customer.model;

import javax.persistence.*;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:关系类型 关联表:CS_RELATION_TYPE
 *  @author Adama Yue
 */
@Entity
@Table(name = "CS_RELATION_TYPE")
public class RelationTypeDO implements IDomainObject{
	public static final String RTYPE_HUSBAND_WIFE = "001";
	public static final String RTYPE_FATHER_SON = "002";
	public static final String RTYPE_FATHER_DAUGHTER = "003";
	public static final String RTYPE_MOTHER_SON = "004";
	public static final String RTYPE_MOTHER_DAUTER = "005";

	/**
	 * 企业法人代表
	 */
	public static final String RTYPE_ENTERPRISE_LEGAL = "006";

	/**
	 * 委托代理人
	 */
	public static final String RTYPE_ENTERPRISE_PROXY = "007";

	@Id
	@GeneratedValue
	@Column(name="RELATION_TYPE_ID")
	private Long relationTypeId;

	@Column(name = "RELATION_TYPE_NAME", nullable = true, insertable = true, updatable = true, length = 36)
	private String relationTypeName;//关系类型名称
	/**
	 * 001妻子 002父子 003父女 004母子 005母女 006企业-法人 007企业-代理人
	 */
	@Column(name = "RELATION_TYPE_CODE", nullable = true, insertable = true, updatable = true, length = 36)
	private String relationTypeCode;//关系类型编号

	@Embedded
	private SysInfo sysInfo;//创建人信息

	public RelationTypeDO() {}
	/**
	 * mini constructor
	 * @param sysInfo 系统信息
	 */
	public RelationTypeDO( SysInfo sysInfo) {
		super();
		this.sysInfo = sysInfo;
	}
	/**************************************************
	 * Accessors and Modifiers
	 **************************************************/
	public String getRelationTypeCode() {
		return relationTypeCode;
	}
	public void setRelationTypeCode(String relationTypeCode) {
		this.relationTypeCode = relationTypeCode;
	}
	public Long getRelationTypeId() {
		return relationTypeId;
	}
	public String getRelationTypeName() {
		return relationTypeName;
	}
	public void setRelationTypeName(String relationTypeName) {
		this.relationTypeName = relationTypeName;
	}
	public SysInfo getSysInfo() {
		return sysInfo;
	}
	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}
	public void setRelationTypeId(Long relationTypeId) {
		this.relationTypeId = relationTypeId;
	}



}
